module.exports = {
	data() {
		return {

		}
	},
	onReady() {

	},
	methods: {
		// 前往界面
		toPage: (url) => {
			uni.navigateTo({
				url
			});
		},
		toPageName: (name) => {
			let url = ""
			switch (name) {
				case "index":
					url = "/pages/index/index"
					break
				case "userInfo":
					url = "/uni_modules/uni-id-pages/pages/userinfo/userinfo"
					break
				case "visual":
					url = "/pages/index/index?index=2"
					break

				default:
					url = "/pages/index/index"
			}
			uni.navigateTo({
				url
			});
		}
	},
}